import { PrimaryGeneratedColumn , Column, Entity , OneToMany } from 'typeorm';
import { TeamRankData } from './team_rank_data';
import { NBAData } from './nba_data';

@Entity()
class Season {

    @PrimaryGeneratedColumn("uuid")
    id?: string;

    @Column({
        type: "varchar",
        length: 255,
        nullable: false,
        comment: "赛季名称"
    })
    name: string;

    @Column({
        type: "varchar",
        length: 255,
        comment: "赛季名称 页面展示"
    })
    nameDisplay: string;

    @Column({
        type: "varchar",
        length: 255,
        comment: "是否当前赛季"
    })
    isCurrent: string;

    // @OneToMany(type => TeamRankData,teamRankData => teamRankData.season)
    // teamRankData: TeamRankData;

    // @OneToMany(type => NBAData,nbaData => nbaData.season)
    // nbaData: NBAData;

}

export { Season }